package framework;
import java.util.HashMap;
import java.util.Map;
/**
 * @Author:DarknessShadow
 * @description:框架 - 管理类
 * @date 2020/5/12 13:53
 */
public class Manager {
    private Map showcase = new HashMap();
    public void register(String name, Product proto) {
        showcase.put(name, proto);
    }
    public Product create(String protoname) {
        Product p = (Product) showcase.get(protoname);
        return p.creatClone();
    }
}
